import { setColumnsRender } from '@/utils/common'

const useTables = () => {
  const renderMap = new Map<string,any>([]);
  
  const afterGetColumns = (columns: Recordable[]): Recordable[] => {
    setColumnsRender(columns, renderMap)
    return columns
  }
  
  return { afterGetColumns }
}

export default useTables